home *** CD-ROM | disk | FTP | other *** search
- Path: news.spies.com!usenet
- From: Erik Max Francis <max@alcyone.com>
- Newsgroups: comp.object,comp.lang.c++,comp.ai.alife,sci.comp-aided
- Subject: Re: [Q] Growing Objects
- Date: Sat, 03 Feb 1996 12:39:13 -0800
- Organization: &tSftDotIotE
- Message-ID: <3113C7F1.5A1774AB@alcyone.com>
- References: <30FE8297.41C6@bme.jhu.edu> <RMARTIN.96Jan20093428@rcm.oma.com> <4ef3bo$mjo@news.jhu.edu> <310C2EE2.8171C34@alcyone.com> <4evbei$55v@news.jhu.edu>
- NNTP-Posting-Host: newton.alcyone.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (X11; I; Linux 1.2.8 i486)
-
- Harold Bien wrote:
-
- > I understand the utility of abstract/virtual classes, but my
- > problem is that the classes are held in a container class. If I were to
- > morph a class, I must somehow squeeze it into the same space as the
- > former class in order for the container class (which holds pointers) to
- > maintain a valid pointer to the class.
-
- I'm not sure I understand your objection; a container designed to hold pointers
- to a class can also hold pointers to derived classes as well. If you're using
- a pointer to the class in the container class, it shouldn't matter how large or
- small the class (or derived class) is, since you're just maintaining a pointer
- to it, not a local copy.
-
- Or am I completely misunderstanding you?
-
- --
- Erik Max Francis, &tSftDotIotE. && max@alcyone.darkside.com || max@alcyone.com
- San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
- H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
- Omnia quia sunt, lumina sunt. && GIGO Omega Psi && http://www.alcyone.com/max/
- "Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_
-